﻿
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <script src="/Contents/scripts/jquery-1.8.0.min.js" type="text/javascript"></script>
        <script src="/Contents/scripts/functions.js" type="text/javascript"></script>
        <link href="/Contents/css/glassbtn.css" rel="stylesheet" type="text/css" />
        <script src="/Contents/scripts/manager-js/admin-manager.js" type="text/javascript"></script>
        <style type="text/css">
            .left{float:left; width:60px; text-align:right;font-family:微软雅黑;color:#444444;line-height:26px;margin-bottom:8px;}
            .right{float:left;}
            
            .shuru{border:1px solid #ccc; height:23px; width:170px;line-height:23px; text-indent:5px;margin-bottom:8px;}
            .shuru:hover{border:1px solid #88C5EE; height:23px; line-height:23px; text-indent:5px;}
        </style>
    </head>
    <body style="padding-left:5px;padding-top:5px;">
        <div style="float:left;" >
            <span class="left">姓名：</span>
            <span class="right">
                <input type="text" class="shuru" id="name" />
            </span>
            <span class="left">电话：</span>
            <span class="right">
                <input type="text" class="shuru" id="phone" />
            </span>
            <span class="left">账号：</span>
            <span class="right">
                <input type="text" class="shuru" id="account" />
            </span>
            <span class="left">密码：</span>
            <span class="right">
                <input type="text" class="shuru" id="psword" />
            </span>
            <span class="left">级别：</span>
            <span class="right">
                <select id="level"  class="shuru" style="font-family:微软雅黑;width:175px;height:26px;line-height:26px;">
                    <option value="0">管理员</option>
                    <option value="1">超级管理员</option>
                </select>
            </span>
            
        </div> 
        <div style="font-family:微软雅黑; font-size:14px;margin-left:60px;margin-top:12px;">
            <input type="checkbox" id="use_default_psword" onclick="setDefaultPsword()" /><label for="use_default_psword" >&nbsp;使用电话号码做默认密码</label>
        </div>
        <div style="float:left;">
            <input type="button" class="greenbtn" style="width:70px;margin-left:60px;margin-top:15px;" value="添加" name="add_new_btn" onclick="addAdmin()"/>
        </div>
        <div style="float:left;">
            <input type="button" class="greenbtn" style="width:70px;margin-top:15px;margin-left:25px;" value="取消" name="cancel_btn" onclick="all_admin_closeForm()" />
         </div>
        <script type="text/javascript">
            $(document).ready(function () {
                var text = document.getElementById("name");
                text.focus();

                $('[id^=phone]').keypress(validateNumber);  // 电话号码为整数
                $('[id^=phone]').keypress(setDefaultPsword);
            })
        </script>
    </body>
</html>
